﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Csla;
using Csla.Core;
using Csla.Rules;
using Csla.Serialization;


namespace ERPLibrary
{
    [Serializable]
    public class Accsount : Csla.BusinessBase<Accsount>
    {

        protected void DataPortal_Fetch(SingleCriteria<Accsount, Guid> Criteria)
        {
            using (var Context = new ERPLibrary.Data.ERP2014CSLAEntities())
            {
                var data = Context.ac000.Where(x => x.GUID == Criteria.Value).FirstOrDefault();
                if (data != null)
                {// LoadDataToProperties(data);}
                }
            }



        }
    }
}
